﻿using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using Caliburn.Micro.Extensions;
using IdeaBlade.Application.Framework.Core.Persistence;

namespace WpfHarness
{
    public class AppBootstrapper : FrameworkBootstrapper<HarnessViewModel>
    {
        protected override void InitializeCompositionBatch(CompositionBatch batch)
        {
            base.InitializeCompositionBatch(batch);
            batch.AddExportedValue<IEntityManagerProvider<NorthwindIBEntities>>(new EntityManagerProvider());
        }
    }
}